package com.imut.hcdp.mapper;

import java.util.List;
import com.imut.hcdp.domain.HcdpOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface HcdpOrderMapper
{

    public HcdpOrder selectHcdpOrderById(Long id);


    public List<HcdpOrder> selectHcdpOrderList(HcdpOrder hcdpOrder);


    public int insertHcdpOrder(HcdpOrder hcdpOrder);


    public int updateHcdpOrder(HcdpOrder hcdpOrder);

    public int updateHcdpByLs(HcdpOrder hcdpOrder);


    public int deleteHcdpOrderById(Long id);


    public int deleteHcdpOrderByIds(Long[] ids);

    /**
     * 是否重复购买次行程
     * @param card
     * @param routeId
     * @return
     */
    int checkDistinctOrder(@Param("card") String card, @Param("routeId")Long routeId);

}
